home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr13 / aurora2c.zip / SYNTAX2.AML < prev    next >
Text File  |  1995-04-07  |  11KB  |  201 lines

  1.  
  2. // ───────────────────────────────────────────────────────────────────
  3. // The Aurora Editor v2.0
  4. // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
  5. //
  6. // Additional syntax highlighting definitions
  7. // (supplement to SYNTAX.AML)
  8. //
  9. // To activate a syntax highlighting definition contained in this file,
  10. // copy it to SYNTAX.AML. Then modify the 'onsyntax' function in
  11. // SYNTAX.AML to associate a filename with the new syntax object. Select
  12. // 'Recompile the Editor' <alt f2> from the Set menu and exit and
  13. // re-enter the editor for your changes to take effect.
  14. //
  15. // Note: to conserve editor resources, copy only the syntax
  16. // highlighting definitions you actually use.
  17. // ───────────────────────────────────────────────────────────────────
  18.  
  19.  
  20.   // syntax highlighting for Pascal files (.PAS, .INC)
  21.   object  pas
  22.  
  23.     syntax
  24.       'bfin'                          // options:
  25.                                       //   b=show through marked block
  26.                                       //   c=don't highlight cursor line
  27.                                       //   f=use only foreground colors
  28.                                       //   i=ignore keyword case
  29.                                       //   n=highlight numbers
  30.       '()[].=+-*/:;<>,@#'             // symbol set
  31.       '"\''                           // string characters
  32.       ''                              // string literal char
  33.       '$'                             // numeric char
  34.       ''            0                 // eol comment 1 / start column
  35.       ''            0                 // eol comment 2 / start column
  36.       '{'          '}'                // multi-line comment 1
  37.       '(*'         '*)'               // multi-line comment 2
  38.       0                               // number of lines to scan backward
  39.  
  40.       color brightcyan   on black     // keyword color
  41.       color gray         on cyan      // symbol color
  42.       color brightred    on black     // string color
  43.       color brightred    on black     // numeric color
  44.       color brightgreen  on black     // eol1 comment color
  45.       color yellow       on black     // eol2 comment color
  46.       color brightgreen  on black     // comment1 color
  47.       color brightcyan   on black     // comment2 color
  48.  
  49.     keyword
  50.       absolute, and, array, asm, assembler, begin, boolean, byte, case,
  51.       char, comp, const, constructor, destructor, div, do, double,
  52.       downto, else, end, exit, export, extended, external, false, far,
  53.       file, for, forward, function, goto, if, implementation, in, index,
  54.       inherited, inline, integer, interface, interrupt, label, library,
  55.       longint, mod, name, near, nil, not, object, of, or, ord, packed,
  56.       private, procedure, program, public, real, record, repeat,
  57.       resident, set, shl, shortint, shr, single, string, then, to, true,
  58.       type, unit, until, uses, var, virtual, while, with, word, xor
  59.  
  60.  
  61.   // syntax highlighting for BASIC files (.BAS, .BI)
  62.   object  basic
  63.  
  64.     syntax
  65.       'bfin'                          // options:
  66.                                       //   b=show through marked block
  67.                                       //   c=don't highlight cursor line
  68.                                       //   f=use only foreground colors
  69.                                       //   i=ignore keyword case
  70.                                       //   n=highlight numbers
  71.       '()=+-*/<>!#$%^'                 // symbol set
  72.       '"'                             // string characters
  73.       ''                              // string literal char
  74.       ''                              // numeric char
  75.       "'"           0                 // eol comment 1 / start column
  76.       'rem'         0                 // eol comment 2 / start column
  77.       ''           ''                 // multi-line comment 1
  78.       ''           ''                 // multi-line comment 2
  79.       0                               // number of lines to scan backward
  80.  
  81.       color brightcyan   on black     // keyword color
  82.       color gray         on cyan      // symbol color
  83.       color brightred    on black     // string color
  84.       color brightred    on black     // numeric color
  85.       color brightgreen  on black     // eol1 comment color
  86.       color yellow       on black     // eol2 comment color
  87.       color brightgreen  on black     // comment1 color
  88.       color brightcyan   on black     // comment2 color
  89.  
  90.     keyword
  91.       abs, access, alias, all, and, any, append, asc, as, atn, base,
  92.       beep, begintrans, binary, bload, bof, bsave, byval, calls, call,
  93.       case, ccur, cdbl, cdecl, chain, chdir, chdrive, checkpoint, chr$,
  94.       cint, circle, clear, clng, close, cls, color, command$,
  95.       committrans, common, com, const, cos, createindex, csng, csrlin,
  96.       curdir$, currency, cvc, cvdmbf, cvd, cvi, cvl, cvsmbf, cvs, data,
  97.       date$, declare, defcur, defdbl, defint, deflng, defsng, defstr,
  98.       def, deleteindex, deletetable, delete, dim, dir$, double, do,
  99.       draw, elseif, else, endif, end, environ$, environ, eof, eqv,
  100.       erase, erdev$, erdev, erl, error, err, event, exit, exp, field,
  101.       fileattr, files, fix, for, freefile, fre, function, getindex$,
  102.       get, gosub, goto, go, hex$, if, imp, inkey$, input$, input, inp,
  103.       insert, instr, integer, int, ioctl$, ioctl, isam, is, key, kill,
  104.       lbound, lcase$, left$, len, let, line, list, local, locate, lock,
  105.       loc, lof, log, long, loop, lpos, lprint, lset, ltrim$, mid$, mkc$,
  106.       mkd$, mkdir, mkdmbf$, mki$, mkl$, mks$, mksmbf$, mod, movefirst,
  107.       movelast, movenext, moveprevious, name, next, not, oct$, off, on,
  108.       open, option, or, output, out, paint, palette, pcopy, peek, pen,
  109.       play, pmap, point, poke, pos, preset, print, pset, put, randomize,
  110.       random, read, redim, reset, restore, resume, retrieve, return,
  111.       right$, rmdir, rnd, rollback, rset, rtrim$, run, sadd, savepoint,
  112.       screen, seekeq, seekge, seekgt, seek, seg, select, setindex,
  113.       setmem, sgn, shared, shell, signal, single, sin, sleep, sound,
  114.       space$, spc, sqr, ssegadd, sseg, stack, static, step, stick, stop,
  115.       str$, strig, string$, string, sub, swap, system, tab, tan, then,
  116.       time$, timer, to, troff, tron, type, ubound, ucase$, uevent,
  117.       unlock, until, update, using, val, varptr$, varptr, varseg, view,
  118.       wait, wend, while, width, window, write, xor
  119.  
  120.  
  121.   // syntax highlighting for 80x86 assembly language files (.ASM, .INC)
  122.   object  asm
  123.  
  124.     syntax
  125.       'bfin'                          // options:
  126.                                       //   b=show through marked block
  127.                                       //   c=don't highlight cursor line
  128.                                       //   f=use only foreground colors
  129.                                       //   i=ignore keyword case
  130.                                       //   n=highlight numbers
  131.       '[],:%!&$()*+-/?.<>'            // symbol set
  132.       '\'"'                           // string characters
  133.       ''                              // string literal char
  134.       ''                              // numeric symbol
  135.       ';'           0                 // eol comment 1 / start column
  136.       ''            0                 // eol comment 2 / start column
  137.       ''            ''                // multi-line comment 1
  138.       ''            ''                // multi-line comment 2
  139.       0                               // number of lines to scan backward
  140.  
  141.       color brightcyan   on black     // keyword color
  142.       color gray         on cyan      // symbol color
  143.       color brightred    on black     // string color
  144.       color brightred    on black     // numeric color
  145.       color brightgreen  on black     // eol1 comment color
  146.       color yellow       on black     // eol2 comment color
  147.       color brightgreen  on black     // comment1 color
  148.       color brightcyan   on black     // comment2 color
  149.  
  150.     keyword
  151.       and, assume, byte, codeptr, dataptr, dup, dword, endm, endp, ends,
  152.       eq, equ, extrn, far, fword, ge, gt, high, large, length, le, low,
  153.       lt, macro, mask, mod, near, ne, not, offset, or, proc, ptr,
  154.       public, pword, qword, segment, seg, shl, short, shr, size, small,
  155.       symtype, tbyte, this, type, unknown, width, word, xor, call, code,
  156.       data, else, endif, end, esc, ifdef, include, near, rep, repe,
  157.       repne, repnz, repz, ret
  158.  
  159.  
  160.   // syntax highlighting for DOS batch files (.BAT)
  161.   object  batch
  162.  
  163.     syntax
  164.       'bfin'                          // options:
  165.                                       //   b=show through marked block
  166.                                       //   c=don't highlight cursor line
  167.                                       //   f=use only foreground colors
  168.                                       //   i=ignore keyword case
  169.                                       //   n=highlight numbers
  170.       '()[]{}.=+-*/;<>|&,~^#%'        // symbol set
  171.       ''                              // string characters
  172.       ''                              // string literal char
  173.       ''                              // numeric char
  174.       'REM'         0                 // eol comment 1 / start column
  175.       'rem'         0                 // eol comment 2 / start column
  176.       ''           ''                 // multi-line comment 1
  177.       ''           ''                 // multi-line comment 2
  178.       0                               // number of lines to scan backward
  179.  
  180.       color brightcyan   on black     // keyword color
  181.       color gray         on cyan      // symbol color
  182.       color brightred    on black     // string color
  183.       color brightred    on black     // numeric color
  184.       color brightgreen  on black     // eol1 comment color
  185.       color yellow       on black     // eol2 comment color
  186.       color brightgreen  on black     // comment1 color
  187.       color brightcyan   on black     // comment2 color
  188.  
  189.     keyword
  190.       append, assign, attrib, backup, break, call, cd, chcp, chdir,
  191.       chkdsk, cls, command, comp, copy, ctty, date, debug, del, dir,
  192.       diskcomp, diskcopy, doskey, dosshell, do, echo, edit, edlin,
  193.       emm386, erase, exe2bin, exist, exit, expand, fastopen, fc, fdisk,
  194.       find, format, for, goto, graftabl, graphics, help, if, in, join,
  195.       keyb, label, lh, loadhigh, md, mem, mirror, mkdir, mode, more,
  196.       nlsfunc, not, path, pause, print, prompt, qbasic, rd, recover,
  197.       rename, ren, replace, restore, rmdir, setver, set, share, shift,
  198.       sort, subst, sys, time, tree, type, undelete, unformat, verify,
  199.       ver, vol, xcopy
  200.  
  201.